package com.ztorn.fiscale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztorn.common.core.annotation.Excel;
import com.ztorn.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 单证对象 fiscale_document
 *
 * @author ztorn
 */
public class FiscaleDocument extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单证ID */
    private Long documentId;

    /** 单证名称 */
    @Excel(name = "单证名称")
    private String documentName;

    /** 单证类型ID */
    @Excel(name = "单证类型ID")
    private Long documentTypeId;

    /** 单证类型名称 */
    @Excel(name = "单证类型")
    private String documentTypeName;

    /** 关联单号 */
    @Excel(name = "关联单号")
    private String referenceNo;

    /** 文件URL */
    @Excel(name = "文件URL")
    private String fileUrl;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;

    /** 文件大小 */
    @Excel(name = "文件大小(KB)")
    private Long fileSize;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    /** 上传人 */
    @Excel(name = "上传人")
    private String uploadBy;

    /** 状态（0正常 1删除） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=删除")
    private String status;

    public void setDocumentId(Long documentId)
    {
        this.documentId = documentId;
    }

    public Long getDocumentId()
    {
        return documentId;
    }

    public void setDocumentName(String documentName)
    {
        this.documentName = documentName;
    }

    public String getDocumentName()
    {
        return documentName;
    }

    public void setDocumentTypeId(Long documentTypeId)
    {
        this.documentTypeId = documentTypeId;
    }

    public Long getDocumentTypeId()
    {
        return documentTypeId;
    }

    public String getDocumentTypeName()
    {
        return documentTypeName;
    }

    public void setDocumentTypeName(String documentTypeName)
    {
        this.documentTypeName = documentTypeName;
    }

    public void setReferenceNo(String referenceNo)
    {
        this.referenceNo = referenceNo;
    }

    public String getReferenceNo()
    {
        return referenceNo;
    }

    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }

    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }

    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }

    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }

    public void setUploadBy(String uploadBy)
    {
        this.uploadBy = uploadBy;
    }

    public String getUploadBy()
    {
        return uploadBy;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("documentId", getDocumentId())
            .append("documentName", getDocumentName())
            .append("documentTypeId", getDocumentTypeId())
            .append("documentTypeName", getDocumentTypeName())
            .append("referenceNo", getReferenceNo())
            .append("fileUrl", getFileUrl())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("uploadTime", getUploadTime())
            .append("uploadBy", getUploadBy())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
